<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>09突出展示案例</title>
</head>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            list-style: none;
        }
        body{
            background: #000;
            width: 830px;
            height: 520px;
            overflow: hidden;
            border: 1px solid #fff;
            margin: 100px auto;
            padding: 10px auto 10px;
        }
        .wrap li {
            float: left;
            margin: 10px 10px 10px 10px;
        }
        .wrap img {
            display: block;
            border: 0;
        }

    
    </style>

<body>
    <div class="wrap">
        <ul>
            <li><a href="#"><img src="img/01.jpg" alt=""></a></li>
            <li><a href="#"><img src="img/02.jpg" alt=""></a></li>
            <li><a href="#"><img src="img/03.jpg" alt=""></a></li>
            <li><a href="#"><img src="img/04.jpg" alt=""></a></li>
            <li><a href="#"><img src="img/05.jpg" alt=""></a></li>
            <li><a href="#"><img src="img/06.jpg" alt=""></a></li>
        </ul>
    </div>

    <script src="../jquery-3.2.1.js"></script>
    <script>
    
        $(function(){
            $(".wrap>ul>li").mouseenter(function(){
                $(this).css("opacity","1").siblings().css("opacity","0.4");
            });
            $(".wrap").mouseleave(function(){
                $(this).find("li").css("opacity","1");
            })
        })
    
    </script>
</body>
</html>